2024-04-22


Typescript Record<>
In Typescript there is apparently something called Record<> which allows you to create an object type without using {}.
For example:
Record<string, Pattern>
is the same as
{ [key: string]: Pattern }
but imo looks a bit more readable. 😊
Go back to all posts